/* ==================================================================   
 * Created 2013-10-25上午11:43:16 by 郑伟
 * ==================================================================  
 *  EMV  Level2
 * Copyright (c) SZZCS S&T Co.ltd ShenZhen, 2012-2013 
 * ================================================================== 
 * 深圳市中磁计算机技术有限公司拥有该文件的使用、复制、修改和分发的许可权
 * 如果你想得到更多信息，请访问 <http://www.szzcs.com/cn>
 *
 * SZZCS S&T Co.ltd ShenZhen owns permission to use, copy, modify and 
 * distribute this documentation.
 * For more information on EMV, please 
 * see <http://www.szzcs.com/cn>.  
 * ================================================================== 
 */
package com.hangup.activity;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.widget.EditText;

/**
 * 登录的类，可注册和找回密码，登录不成功将不能使用系统
 * 
 * @author 小贱
 */
public class LoginActivity extends Activity {
	private EditText et_name;
	private EditText et_pass;

	@SuppressLint("HandlerLeak")
	Handler handler_ = new Handler() {
		@Override
		public void handleMessage(Message msg) {
			// TODO Auto-generated method stub
			switch (msg.what) {
			case 0:

				break;

			default:
				break;
			}
		}
	};

	@Override
	public void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_login);

		et_name = (EditText) findViewById(R.id.username_edit);
		et_pass = (EditText) findViewById(R.id.password_edit);

	}

	/**
	 * 登录线程&验证登录信息,使用线程处理
	 */
	protected void login(View view) {
		new Thread(new Runnable() {

			@Override
			public void run() {
				// TODO Auto-generated method stub

			}
		}).start();
	}

	protected void register() {

	}

	/**
	 * 用户找回密码
	 */
	protected void findPassword() {

	}

	@Override
	public void startActivityForResult(Intent intent, int requestCode) {
		/* 回调函数 */
		switch (requestCode) {
		// case :
		// break;
		}
		super.startActivityForResult(intent, requestCode);
	}
}
